#include "Mylogger.hh"
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;

void test0(){
    Mylogger::getInstance()->warn("this is a warn msg");
    Mylogger::destroy();
}

void test1()
{
    cout << __FILE__ << endl;
    cout << __func__ << endl;
    cout << __LINE__ << endl;
}


void test2()
{
    cout << addPrefix("this is a test msg") << endl;
}

void test3()
{
    Mylogger::getInstance()->warn(addPrefix("this is a warn msg"));
    Mylogger::destroy();
}

/* void LogWarn(const char * msg) */
/* { */
/*     Mylogger::getInstance()->warn(addPrefix(msg)); */
/*     Mylogger::destroy(); */
/* } */

void test4()
{
    LogWarn("this is a warn msg");
    Mylogger::destroy();
}

int main(void){
    test4();
    return 0;
}
